package xhwl.retrofitrx;

/**
 * Created by admin on 2017/1/12.
 */

public class HttpException extends Exception {
    private int code;
    private String message;
    public HttpException(Throwable cause) {
        super(cause);
    }

    public HttpException(int code,String message, Throwable cause) {
        super(message, cause);
        setCode(code);
        setMessage(message);
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
